<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no">
    <title>登录</title>
    <link rel="stylesheet" href="css/mstyle.css">
</head>
<body class="login-bg">
<form action="/user/login" method="post">
<div class="login-contain">
    <div class="login-header">
        <p>欢迎登录</p>
    </div>
    <div class="form-group">
        <div class="form-item">
            <label for="username">
                <img src="images/user.png">
            </label>
            <input id="username" type="text" placeholder="请输入账号">
        </div>
        <div class="form-item">
            <label for="password">
                <img src="images/password.png" alt="">
            </label>
            <input id="password" type="password" placeholder="请输入密码">
        </div>
    </div>
    <div class="button-group">
        <button class="login-btn" id="doLogin" type="submit">登录</button>
    </div>
    <div class="order-login">
        <p class="order-login-line">其他方式</p>
        <div class="order-login-box">
            <div class="order-login-box-box">
            <div>
                <a href="m-regist.html">
                    <img src="images/QQ.png" alt="" style="width: 45px;height: 45px;">
                    <p>QQ登录</p>
                </a>
            </div>
            <div>
                <a href="m-regist.html">
                    <img src="images/user.png" alt="" style="width: 45px;height: 45px;">
                    <p>用户注册</p>
                </a>
            </div>
            </div>
        </div>
    </div>
</div>
</form>

<script src="js/jquery.js"></script>
<script>
    $(function(){
        $(window).resize();
    });
    //js设置居中
    $(window).resize(function(){
        $(".login-contain").css({
            position: "absolute",
            left: ($(window).width() - $(".login-contain").outerWidth())/2,
            top: ($(window).height() - $(".login-contain").outerHeight())/2
        });
    });
</script>

</body>
</html>
